<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    // const arr = ["hello",5,6,7,8,"world"];
    // 数组的展开，一定要在能接收多个数据的位置，展开
    // console.log(...arr);
    // alert(...arr);
    // document.write(...arr);

    // const arr2 = [45,36,755,134,78];
    // console.log(Math.min(...arr2));


    const obj = {
        name:"admin",
        age:18
    }
    // 对象的展开，一定要在能接收多个键值对的位置，展开
    // ...obj

    const obj2 = {
        ...obj,
        a:10,
        b:20
    }

    obj2.name = "root";

    console.log(obj)
    console.log(obj2)

    




</script>
</html>